<?php

namespace RSP\ReseauSocialBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class MessageType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('id_dest')
            ->add('id_exp')
            ->add('contenu')
            ->add('date_envoi')
            ->add('date_lecture')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'RSP\ReseauSocialBundle\Message'
        ));
    }

    public function getName()
    {
        return 'RSP_reseausocialbundle_messagetype';
    }
}
